﻿<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<title>客户档案</title>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/main.css" type="text/css" />
<script language="javascript" src="script/main.js"></script>

</head>
<body>

<p></p>
<s:form action="clientAction" method="post" theme="simple">
	<p><font style="font-size: 10pt;">档案管理->客户档案</font></p>

	<table border="0" cellpadding="1" cellspacing="1" width="95%">
		<tr>
			<td align="right" width="10%" nowrap="true">客户编号</td>
			<td width="20%"><s:textfield name="client.code"
				cssClass="TextInput"></s:textfield></td>
			<td align="right" width="10%" nowrap="true">客户名称</td>
			<td width="20%"><s:textfield name="client.name"
				cssClass="TextInput"></s:textfield></td>
			<td width="40%">&nbsp;</td>
		</tr>
		<tr>
			<td align="right" width="10%" nowrap="true">&nbsp;</td>
			<td width="20%">&nbsp;</td>
			<td width="70%" colspan="5">&nbsp;</td>
		</tr>
	</table>


	<p></p>
	<div style="margin-left: 30px; margin-right: 0px">
	<table border="0" cellpadding="0" cellspacing="0" width="95%">
		<tr>
			<td width="10%"><s:submit value="查找" cssClass="BtnAction"
				method="findClient"></s:submit></td>
			
			<td width="10%"><input type="button" class="BtnAction"
				value="新增"
				onClick="replaceModulUrl('<%=basePath%>moduls/archive/addClient.jsp');"></td>
			<td width="10%"><input type="button"
				onClick="deleteRecords('clientAction!deleteClient.action')"
				value="删除" class="BtnAction" /></td>
				<td width="10%"><input type="reset" value="重置" class="BtnAction" /></td>
			<td width="60%">&nbsp;</td>
		</tr>
	</table>
	</div>

	<p></p>

	<div style="margin-left: 30px; margin-right: 0px">
	<table width="90%" border="1" cellpadding="0" cellspacing="0">
		<tr>
			<td width="7%" class="td_title">选择</td>
			<td width="7%" class="td_title">修改</td>
			<td width="12%" class="td_title">客户编号</td>
			<td width="22%" class="td_title">客户名称</td>
			<td width="17%" class="td_title">客户地址</td>

			<td width="17%" class="td_title">客户电话</td>
			<td width="18%" class="td_title">客户Email</td>

		</tr>
		<s:iterator var="client" value="clients">
			<tr>
				<td align="center" class="td_border"><input name="clientId"
					type="checkbox" title="选中后可进行删除操作"
					value='<s:property value="#client.id" />'></td>
				<td align="center" class="td_border"><a
					href='clientAction!preUpdateClient.action?client.id=<s:property value="#client.id" />'><img
					src="image/edit.gif" border="0"></a></td>
				<td class="td_border"><s:property value="#client.code" /></td>
				<td class="td_border"><s:property value="#client.name" /></td>
				<td class="td_border"><s:property value="#client.address" /></td>

				<td class="td_border"><s:property value="#client.telephone" /></td>
				<td class="td_border"><s:property value="#client.email" /></td>

			</tr>
		</s:iterator>

	</table>
	</div>
</s:form>
</body>
</html>